
%% Generate the sets of Type I Extreme Value Errors to be added to the firm profit equation.

cd ../china/estimation/serial_correlation
clear

rand_seed = 100;
rand('seed',rand_seed);
rng(0,'twister');

for w=1:50 

eps1=gevrnd(0,1,-0.57721566,2500,1);
eps2=gevrnd(0,1,-0.57721566,2500,1);
eps3=gevrnd(0,1,-0.57721566,2500,1);


file1=sprintf('eps1_run%d',w)
file2=sprintf('eps2_run%d',w)
file3=sprintf('eps3_run%d',w)


cd ../china/estimation/serial_correlation/eps1
xlswrite(file1,eps1)
cd ../china/estimation/serial_correlation/eps2
xlswrite(file2,eps2)
cd ../china/estimation/serial_correlation/eps3
xlswrite(file3,eps3)

end